import Vue from 'vue'
import Router from 'vue-router'
// eslint-disable-next-line no-unused-vars
import { BasicLayout, RouteView } from '@/layouts'

Vue.use(Router)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: BasicLayout,
    redirect: '/notice',
    children: [
      {
        path: '/notice',
        name: 'notice',
        component: () => import('../views/notice')
      },
      {
        path: '/news',
        name: 'news',
        component: () => import('../views/news')
      }
    ]
  }
]

export default new Router({
  mode: 'history',
  scrollBehavior: () => ({ y: 0 }),
  routes
})
